<!-- HTML header for doxygen 1.8.6-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<title>OpenCV: cv::ocl::ProgramSource Class Reference</title>
<link href="../../opencv.ico" rel="shortcut icon" type="image/x-icon" />
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<script type="text/javascript" src="../../tutorial-utils.js"></script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/searchdata.js"></script>
<script type="text/javascript" src="../../search/search.js"></script>
<script type="text/x-mathjax-config">
  MathJax.Hub.Config({
    extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
    jax: ["input/TeX","output/HTML-CSS"],
});
//<![CDATA[
MathJax.Hub.Config(
{
  TeX: {
      Macros: {
          matTT: [ "\\[ \\left|\\begin{array}{ccc} #1 & #2 & #3\\\\ #4 & #5 & #6\\\\ #7 & #8 & #9 \\end{array}\\right| \\]", 9],
          fork: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ \\end{array} \\right.", 4],
          forkthree: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ #5 & \\mbox{#6}\\\\ \\end{array} \\right.", 6],
          forkfour: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ #5 & \\mbox{#6}\\\\ #7 & \\mbox{#8}\\\\ \\end{array} \\right.", 8],
          vecthree: ["\\begin{bmatrix} #1\\\\ #2\\\\ #3 \\end{bmatrix}", 3],
          vecthreethree: ["\\begin{bmatrix} #1 & #2 & #3\\\\ #4 & #5 & #6\\\\ #7 & #8 & #9 \\end{bmatrix}", 9],
          cameramatrix: ["#1 = \\begin{bmatrix} f_x & 0 & c_x\\\\ 0 & f_y & c_y\\\\ 0 & 0 & 1 \\end{bmatrix}", 1],
          distcoeffs: ["(k_1, k_2, p_1, p_2[, k_3[, k_4, k_5, k_6 [, s_1, s_2, s_3, s_4[, \\tau_x, \\tau_y]]]]) \\text{ of 4, 5, 8, 12 or 14 elements}"],
          distcoeffsfisheye: ["(k_1, k_2, k_3, k_4)"],
          hdotsfor: ["\\dots", 1],
          mathbbm: ["\\mathbb{#1}", 1],
          bordermatrix: ["\\matrix{#1}", 1]
      }
  }
}
);
//]]>
</script><script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
<link href="../../stylesheet.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<!--#include virtual="/google-search.html"-->
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="../../opencv-logo-small.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">OpenCV
   &#160;<span id="projectnumber">4.5.2</span>
   </div>
   <div id="projectbrief">Open Source Computer Vision</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</script>
<script type="text/javascript" src="../../menudata.js"></script>
<script type="text/javascript" src="../../menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('../../',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="../../d2/d75/namespacecv.html">cv</a></li><li class="navelem"><a class="el" href="../../d5/d96/namespacecv_1_1ocl.html">ocl</a></li><li class="navelem"><a class="el" href="../../d5/de3/classcv_1_1ocl_1_1ProgramSource.html">ProgramSource</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="#pro-attribs">Protected Attributes</a> &#124;
<a href="#friends">Friends</a> &#124;
<a href="../../de/d7b/classcv_1_1ocl_1_1ProgramSource-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">cv::ocl::ProgramSource Class Reference<div class="ingroups"><a class="el" href="../../d0/de1/group__core.html">Core functionality</a> &raquo; <a class="el" href="../../dc/d83/group__core__opencl.html">OpenCL support</a></div></div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;opencv2/core/ocl.hpp&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:a841dd48aab9b6af0c35b9974b7d2433b"><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="../../d1/d1b/group__core__hal__interface.html#gabc0f5bc07737e498f287334775dff2b6">uint64</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d5/de3/classcv_1_1ocl_1_1ProgramSource.html#a841dd48aab9b6af0c35b9974b7d2433b">hash_t</a></td></tr>
<tr class="separator:a841dd48aab9b6af0c35b9974b7d2433b"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:ae1e9a91d48c66979e6869102e381e420"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d5/de3/classcv_1_1ocl_1_1ProgramSource.html#ae1e9a91d48c66979e6869102e381e420">ProgramSource</a> () <a class="el" href="../../db/de0/group__core__utils.html#ga7b88772bee40b329b585a3a2157abd9b">CV_NOEXCEPT</a></td></tr>
<tr class="separator:ae1e9a91d48c66979e6869102e381e420"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a689ea52f5cf8764ad2f1cee059fd8deb"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d5/de3/classcv_1_1ocl_1_1ProgramSource.html#a689ea52f5cf8764ad2f1cee059fd8deb">ProgramSource</a> (const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp;module, const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp;name, const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp;codeStr, const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp;codeHash)</td></tr>
<tr class="separator:a689ea52f5cf8764ad2f1cee059fd8deb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3ed31c460b18b357141da02992948aa9"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d5/de3/classcv_1_1ocl_1_1ProgramSource.html#a3ed31c460b18b357141da02992948aa9">ProgramSource</a> (const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp;prog)</td></tr>
<tr class="separator:a3ed31c460b18b357141da02992948aa9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6be45d80a058e0ab2f708bdb147e47cf"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d5/de3/classcv_1_1ocl_1_1ProgramSource.html#a6be45d80a058e0ab2f708bdb147e47cf">ProgramSource</a> (const char *prog)</td></tr>
<tr class="separator:a6be45d80a058e0ab2f708bdb147e47cf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9a3b4acc6de763477f9b039125a26dbf"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d5/de3/classcv_1_1ocl_1_1ProgramSource.html#a9a3b4acc6de763477f9b039125a26dbf">ProgramSource</a> (const <a class="el" href="../../d5/de3/classcv_1_1ocl_1_1ProgramSource.html">ProgramSource</a> &amp;prog)</td></tr>
<tr class="separator:a9a3b4acc6de763477f9b039125a26dbf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a738cd156c31ec373f0ca0b7c4de3d5aa"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d5/de3/classcv_1_1ocl_1_1ProgramSource.html#a738cd156c31ec373f0ca0b7c4de3d5aa">ProgramSource</a> (<a class="el" href="../../d5/de3/classcv_1_1ocl_1_1ProgramSource.html">ProgramSource</a> &amp;&amp;prog) <a class="el" href="../../db/de0/group__core__utils.html#ga7b88772bee40b329b585a3a2157abd9b">CV_NOEXCEPT</a></td></tr>
<tr class="separator:a738cd156c31ec373f0ca0b7c4de3d5aa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa2b0238ef9032ce055370d79a6287b85"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d5/de3/classcv_1_1ocl_1_1ProgramSource.html#aa2b0238ef9032ce055370d79a6287b85">~ProgramSource</a> ()</td></tr>
<tr class="separator:aa2b0238ef9032ce055370d79a6287b85"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1ddf4a183ba9f5111e2b50905d45f393"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d5/de3/classcv_1_1ocl_1_1ProgramSource.html#a1ddf4a183ba9f5111e2b50905d45f393">empty</a> () const</td></tr>
<tr class="separator:a1ddf4a183ba9f5111e2b50905d45f393"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3a439b73a10c3e50270f3ce4b38ff6f0"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../d5/de3/classcv_1_1ocl_1_1ProgramSource.html#aee24c43b9029c5fba6fb8747c948c0da">Impl</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d5/de3/classcv_1_1ocl_1_1ProgramSource.html#a3a439b73a10c3e50270f3ce4b38ff6f0">getImpl</a> () const</td></tr>
<tr class="separator:a3a439b73a10c3e50270f3ce4b38ff6f0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a545d3245e411cf8988b6df58e35e7357"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../d5/de3/classcv_1_1ocl_1_1ProgramSource.html#a841dd48aab9b6af0c35b9974b7d2433b">hash_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d5/de3/classcv_1_1ocl_1_1ProgramSource.html#a545d3245e411cf8988b6df58e35e7357">hash</a> () const</td></tr>
<tr class="separator:a545d3245e411cf8988b6df58e35e7357"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac472f17bd1ee3bab677b38e773d82638"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../d5/de3/classcv_1_1ocl_1_1ProgramSource.html">ProgramSource</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d5/de3/classcv_1_1ocl_1_1ProgramSource.html#ac472f17bd1ee3bab677b38e773d82638">operator=</a> (const <a class="el" href="../../d5/de3/classcv_1_1ocl_1_1ProgramSource.html">ProgramSource</a> &amp;prog)</td></tr>
<tr class="separator:ac472f17bd1ee3bab677b38e773d82638"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:addbe09f352f86e3c6648819081b77310"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../d5/de3/classcv_1_1ocl_1_1ProgramSource.html">ProgramSource</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d5/de3/classcv_1_1ocl_1_1ProgramSource.html#addbe09f352f86e3c6648819081b77310">operator=</a> (<a class="el" href="../../d5/de3/classcv_1_1ocl_1_1ProgramSource.html">ProgramSource</a> &amp;&amp;prog) <a class="el" href="../../db/de0/group__core__utils.html#ga7b88772bee40b329b585a3a2157abd9b">CV_NOEXCEPT</a></td></tr>
<tr class="separator:addbe09f352f86e3c6648819081b77310"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a456b1a9829e6474696410160b180293a"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d5/de3/classcv_1_1ocl_1_1ProgramSource.html#a456b1a9829e6474696410160b180293a">source</a> () const</td></tr>
<tr class="separator:a456b1a9829e6474696410160b180293a"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a221c9df82bf2af3b61fd85925a0862ba"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="../../d5/de3/classcv_1_1ocl_1_1ProgramSource.html">ProgramSource</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d5/de3/classcv_1_1ocl_1_1ProgramSource.html#a221c9df82bf2af3b61fd85925a0862ba">fromBinary</a> (const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp;module, const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp;name, const unsigned char *binary, const size_t size, const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">cv::String</a> &amp;buildOptions=<a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">cv::String</a>())</td></tr>
<tr class="memdesc:a221c9df82bf2af3b61fd85925a0862ba"><td class="mdescLeft">&#160;</td><td class="mdescRight">Describe OpenCL program binary. Do not call clCreateProgramWithBinary() and/or clBuildProgram().  <a href="#a221c9df82bf2af3b61fd85925a0862ba">More...</a><br /></td></tr>
<tr class="separator:a221c9df82bf2af3b61fd85925a0862ba"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a264ddbcfeb541ceed587ea52291b3a0c"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="../../d5/de3/classcv_1_1ocl_1_1ProgramSource.html">ProgramSource</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d5/de3/classcv_1_1ocl_1_1ProgramSource.html#a264ddbcfeb541ceed587ea52291b3a0c">fromSPIR</a> (const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp;module, const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp;name, const unsigned char *binary, const size_t size, const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">cv::String</a> &amp;buildOptions=<a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">cv::String</a>())</td></tr>
<tr class="memdesc:a264ddbcfeb541ceed587ea52291b3a0c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Describe OpenCL program in SPIR format. Do not call clCreateProgramWithBinary() and/or clBuildProgram().  <a href="#a264ddbcfeb541ceed587ea52291b3a0c">More...</a><br /></td></tr>
<tr class="separator:a264ddbcfeb541ceed587ea52291b3a0c"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-attribs"></a>
Protected Attributes</h2></td></tr>
<tr class="memitem:a68a27707560a79890587b8960ff25916"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../d5/de3/classcv_1_1ocl_1_1ProgramSource.html#aee24c43b9029c5fba6fb8747c948c0da">Impl</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d5/de3/classcv_1_1ocl_1_1ProgramSource.html#a68a27707560a79890587b8960ff25916">p</a></td></tr>
<tr class="separator:a68a27707560a79890587b8960ff25916"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="friends"></a>
Friends</h2></td></tr>
<tr class="memitem:aee24c43b9029c5fba6fb8747c948c0da"><td class="memItemLeft" align="right" valign="top">struct&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d5/de3/classcv_1_1ocl_1_1ProgramSource.html#aee24c43b9029c5fba6fb8747c948c0da">Impl</a></td></tr>
<tr class="separator:aee24c43b9029c5fba6fb8747c948c0da"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Member Typedef Documentation</h2>
<a id="a841dd48aab9b6af0c35b9974b7d2433b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a841dd48aab9b6af0c35b9974b7d2433b">&#9670;&nbsp;</a></span>hash_t</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef <a class="el" href="../../d1/d1b/group__core__hal__interface.html#gabc0f5bc07737e498f287334775dff2b6">uint64</a> <a class="el" href="../../d5/de3/classcv_1_1ocl_1_1ProgramSource.html#a841dd48aab9b6af0c35b9974b7d2433b">cv::ocl::ProgramSource::hash_t</a></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="ae1e9a91d48c66979e6869102e381e420"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae1e9a91d48c66979e6869102e381e420">&#9670;&nbsp;</a></span>ProgramSource() <span class="overload">[1/6]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">cv::ocl::ProgramSource::ProgramSource </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a689ea52f5cf8764ad2f1cee059fd8deb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a689ea52f5cf8764ad2f1cee059fd8deb">&#9670;&nbsp;</a></span>ProgramSource() <span class="overload">[2/6]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">cv::ocl::ProgramSource::ProgramSource </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp;&#160;</td>
          <td class="paramname"><em>module</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp;&#160;</td>
          <td class="paramname"><em>name</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp;&#160;</td>
          <td class="paramname"><em>codeStr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp;&#160;</td>
          <td class="paramname"><em>codeHash</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">explicit</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a3ed31c460b18b357141da02992948aa9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3ed31c460b18b357141da02992948aa9">&#9670;&nbsp;</a></span>ProgramSource() <span class="overload">[3/6]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">cv::ocl::ProgramSource::ProgramSource </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp;&#160;</td>
          <td class="paramname"><em>prog</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">explicit</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a6be45d80a058e0ab2f708bdb147e47cf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6be45d80a058e0ab2f708bdb147e47cf">&#9670;&nbsp;</a></span>ProgramSource() <span class="overload">[4/6]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">cv::ocl::ProgramSource::ProgramSource </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>prog</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">explicit</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="aa2b0238ef9032ce055370d79a6287b85"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa2b0238ef9032ce055370d79a6287b85">&#9670;&nbsp;</a></span>~ProgramSource()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">cv::ocl::ProgramSource::~ProgramSource </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a9a3b4acc6de763477f9b039125a26dbf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9a3b4acc6de763477f9b039125a26dbf">&#9670;&nbsp;</a></span>ProgramSource() <span class="overload">[5/6]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">cv::ocl::ProgramSource::ProgramSource </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../d5/de3/classcv_1_1ocl_1_1ProgramSource.html">ProgramSource</a> &amp;&#160;</td>
          <td class="paramname"><em>prog</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a738cd156c31ec373f0ca0b7c4de3d5aa"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a738cd156c31ec373f0ca0b7c4de3d5aa">&#9670;&nbsp;</a></span>ProgramSource() <span class="overload">[6/6]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">cv::ocl::ProgramSource::ProgramSource </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../d5/de3/classcv_1_1ocl_1_1ProgramSource.html">ProgramSource</a> &amp;&amp;&#160;</td>
          <td class="paramname"><em>prog</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a1ddf4a183ba9f5111e2b50905d45f393"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1ddf4a183ba9f5111e2b50905d45f393">&#9670;&nbsp;</a></span>empty()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool cv::ocl::ProgramSource::empty </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a221c9df82bf2af3b61fd85925a0862ba"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a221c9df82bf2af3b61fd85925a0862ba">&#9670;&nbsp;</a></span>fromBinary()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="../../d5/de3/classcv_1_1ocl_1_1ProgramSource.html">ProgramSource</a> cv::ocl::ProgramSource::fromBinary </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp;&#160;</td>
          <td class="paramname"><em>module</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp;&#160;</td>
          <td class="paramname"><em>name</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const unsigned char *&#160;</td>
          <td class="paramname"><em>binary</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const size_t&#160;</td>
          <td class="paramname"><em>size</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">cv::String</a> &amp;&#160;</td>
          <td class="paramname"><em>buildOptions</em> = <code><a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">cv::String</a>()</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Describe OpenCL program binary. Do not call clCreateProgramWithBinary() and/or clBuildProgram(). </p>
<p>Caller should guarantee binary buffer lifetime greater than <a class="el" href="../../d5/de3/classcv_1_1ocl_1_1ProgramSource.html">ProgramSource</a> object (and any of its copies).</p>
<p>This kind of binary is not portable between platforms in general - it is specific to OpenCL vendor / device / driver version.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">module</td><td>name of program owner module </td></tr>
    <tr><td class="paramname">name</td><td>unique name of program (module+name is used as key for OpenCL program caching) </td></tr>
    <tr><td class="paramname">binary</td><td>buffer address. See buffer lifetime requirement in description. </td></tr>
    <tr><td class="paramname">size</td><td>buffer size </td></tr>
    <tr><td class="paramname">buildOptions</td><td>additional program-related build options passed to clBuildProgram() </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>created <a class="el" href="../../d5/de3/classcv_1_1ocl_1_1ProgramSource.html">ProgramSource</a> object </dd></dl>

</div>
</div>
<a id="a264ddbcfeb541ceed587ea52291b3a0c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a264ddbcfeb541ceed587ea52291b3a0c">&#9670;&nbsp;</a></span>fromSPIR()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="../../d5/de3/classcv_1_1ocl_1_1ProgramSource.html">ProgramSource</a> cv::ocl::ProgramSource::fromSPIR </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp;&#160;</td>
          <td class="paramname"><em>module</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp;&#160;</td>
          <td class="paramname"><em>name</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const unsigned char *&#160;</td>
          <td class="paramname"><em>binary</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const size_t&#160;</td>
          <td class="paramname"><em>size</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">cv::String</a> &amp;&#160;</td>
          <td class="paramname"><em>buildOptions</em> = <code><a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">cv::String</a>()</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Describe OpenCL program in SPIR format. Do not call clCreateProgramWithBinary() and/or clBuildProgram(). </p>
<p>Supports SPIR 1.2 by default (pass '-spir-std=X.Y' in buildOptions to override this behavior)</p>
<p>Caller should guarantee binary buffer lifetime greater than <a class="el" href="../../d5/de3/classcv_1_1ocl_1_1ProgramSource.html">ProgramSource</a> object (and any of its copies).</p>
<p>Programs in this format are portable between OpenCL implementations with 'khr_spir' extension: <a href="https://www.khronos.org/registry/OpenCL/sdk/2.0/docs/man/xhtml/cl_khr_spir.html">https://www.khronos.org/registry/OpenCL/sdk/2.0/docs/man/xhtml/cl_khr_spir.html</a> (but they are not portable between different platforms: 32-bit / 64-bit)</p>
<p>Note: these programs can't support vendor specific extensions, like 'cl_intel_subgroups'.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">module</td><td>name of program owner module </td></tr>
    <tr><td class="paramname">name</td><td>unique name of program (module+name is used as key for OpenCL program caching) </td></tr>
    <tr><td class="paramname">binary</td><td>buffer address. See buffer lifetime requirement in description. </td></tr>
    <tr><td class="paramname">size</td><td>buffer size </td></tr>
    <tr><td class="paramname">buildOptions</td><td>additional program-related build options passed to clBuildProgram() (these options are added automatically: '-x spir' and '-spir-std=1.2') </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>created <a class="el" href="../../d5/de3/classcv_1_1ocl_1_1ProgramSource.html">ProgramSource</a> object. </dd></dl>

</div>
</div>
<a id="a3a439b73a10c3e50270f3ce4b38ff6f0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3a439b73a10c3e50270f3ce4b38ff6f0">&#9670;&nbsp;</a></span>getImpl()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../d5/de3/classcv_1_1ocl_1_1ProgramSource.html#aee24c43b9029c5fba6fb8747c948c0da">Impl</a>* cv::ocl::ProgramSource::getImpl </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a545d3245e411cf8988b6df58e35e7357"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a545d3245e411cf8988b6df58e35e7357">&#9670;&nbsp;</a></span>hash()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../d5/de3/classcv_1_1ocl_1_1ProgramSource.html#a841dd48aab9b6af0c35b9974b7d2433b">hash_t</a> cv::ocl::ProgramSource::hash </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="ac472f17bd1ee3bab677b38e773d82638"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac472f17bd1ee3bab677b38e773d82638">&#9670;&nbsp;</a></span>operator=() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../d5/de3/classcv_1_1ocl_1_1ProgramSource.html">ProgramSource</a>&amp; cv::ocl::ProgramSource::operator= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../d5/de3/classcv_1_1ocl_1_1ProgramSource.html">ProgramSource</a> &amp;&#160;</td>
          <td class="paramname"><em>prog</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="addbe09f352f86e3c6648819081b77310"></a>
<h2 class="memtitle"><span class="permalink"><a href="#addbe09f352f86e3c6648819081b77310">&#9670;&nbsp;</a></span>operator=() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../d5/de3/classcv_1_1ocl_1_1ProgramSource.html">ProgramSource</a>&amp; cv::ocl::ProgramSource::operator= </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../d5/de3/classcv_1_1ocl_1_1ProgramSource.html">ProgramSource</a> &amp;&amp;&#160;</td>
          <td class="paramname"><em>prog</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a456b1a9829e6474696410160b180293a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a456b1a9829e6474696410160b180293a">&#9670;&nbsp;</a></span>source()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a>&amp; cv::ocl::ProgramSource::source </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">Friends And Related Function Documentation</h2>
<a id="aee24c43b9029c5fba6fb8747c948c0da"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aee24c43b9029c5fba6fb8747c948c0da">&#9670;&nbsp;</a></span>Impl</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">friend struct Impl</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">friend</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="a68a27707560a79890587b8960ff25916"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a68a27707560a79890587b8960ff25916">&#9670;&nbsp;</a></span>p</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../d5/de3/classcv_1_1ocl_1_1ProgramSource.html#aee24c43b9029c5fba6fb8747c948c0da">Impl</a>* cv::ocl::ProgramSource::p</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>opencv2/core/<a class="el" href="../../da/d74/ocl_8hpp.html">ocl.hpp</a></li>
</ul>
</div><!-- contents -->
<!-- HTML footer for doxygen 1.8.6-->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Fri Apr 2 2021 11:36:48 for OpenCV by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.13
</small></address>
<script type="text/javascript">
//<![CDATA[
addTutorialsButtons();
//]]>
</script>
</body>
</html>
